package cn.itcast.service.cargo;

import cn.itcast.domain.cargo.Shipping;
import cn.itcast.domain.cargo.ShippingExample;
import com.github.pagehelper.PageInfo;

import java.util.List;


public interface ShippingService {
    /**
     * 查：分页
     *
     * @param page
     * @param size
     * @param shippingExample
     * @return
     */
    PageInfo findAll(int page, int size, ShippingExample shippingExample);

    /**
     * 查：所有
     *
     * @return
     */
    List<Shipping> findAll(ShippingExample shippingExample);

    Shipping findById(String id);

    void save(Shipping shipping);

    void update(Shipping shipping);

    int delete(String id);
}
